import request from '@/utils/request';

//分页查询图书
export function queryByPage(data,currentPage,pageSize){
    return request({
        url:'/book/queryByPage',
        method:'post',
        data,
        params:{
            currentPage,
            pageSize
        }
    })
}
//保存图书
export function saveBook(data){
    return request({
        url:'/book/saveBook',
        method:'post',
        data
    })
}